# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


class QueryAccessLogRequest(JDCloudRequest):
    """
    查询access日志
    """

    def __init__(self, parameters, header=None, version="v1"):
        super(QueryAccessLogRequest, self).__init__(
            '/access', 'GET', header, version)
        self.parameters = parameters


class QueryAccessLogParameters(object):

    def __init__(self, startTime, endTime, ):
        """
        :param startTime: 开始时间，utc格式，例如：2020-05-19T00:00:05+0800
        :param endTime: 结束时间，utc格式，例如：2020-05-19T00:00:05+0800
        """

        self.call_pin = None
        self.response_status = None
        self.api_name = None
        self.access_key = None
        self.host = None
        self.startTime = startTime
        self.endTime = endTime
        self.pageNumber = None
        self.pageSize = None

    def setCall_pin(self, call_pin):
        """
        :param call_pin: (Optional) 调用者pin
        """
        self.call_pin = call_pin

    def setResponse_status(self, response_status):
        """
        :param response_status: (Optional) 响应码
        """
        self.response_status = response_status

    def setApi_name(self, api_name):
        """
        :param api_name: (Optional) api名称
        """
        self.api_name = api_name

    def setAccess_key(self, access_key):
        """
        :param access_key: (Optional) 调用者accessKey
        """
        self.access_key = access_key

    def setHost(self, host):
        """
        :param host: (Optional) 请求虎符网关的域名
        """
        self.host = host

    def setPageNumber(self, pageNumber):
        """
        :param pageNumber: (Optional) 页码
        """
        self.pageNumber = pageNumber

    def setPageSize(self, pageSize):
        """
        :param pageSize: (Optional) 分页大小
        """
        self.pageSize = pageSize

